# -*- coding: utf-8 -*-

from odoo import models, fields, api


class wliotDeviceIndicatorLog(models.Model):
    _name = 'wliot.device.indicator.log'

    device = fields.Many2one('wliot.device', string=u'设备')
    barcode = fields.Char(string=u'阀门追溯号')
    IMEI = fields.Char(string=u'IMEI')
    code = fields.Integer(string=u'命令码')
    collection_date = fields.Datetime(string=u'日志时间')
    normal_gas_value = fields.Float(string=u'常规气体值')
    normal_temp_value = fields.Float(string=u'常规温度值')
    abnormal_gas_value = fields.Float(string=u'异常气体值')
    abnormal_temp_value = fields.Float(string=u'异常温度值')
    repair_gas_value = fields.Float(string=u'修复气体值')
    repair_temp_value = fields.Float(string=u'修复温度值')
    code_time = fields.Char(string=u'命令时间')
